package com.liu.security.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.apache.ibatis.type.Alias;

import java.util.List;


/**
 * Created by shi860715@126.com
 * Date 2021/8/13 14:20
 * Description
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user")
@Alias("user")
public class DUser {

    @TableId(type = IdType.AUTO )
    private Integer id;

    private String username;

    private String password;

    private  String description;

    @TableField(exist = false)
    private List<Role> roles;

    @TableField(exist = false)
    private List<Permission> permissions;
}
